Platform Explorer / Nuxeo Platform 2023.14

Contribution org.nuxeo.ecm.virtualnavigation.contentviews.contrib--contentViews

This contribution is part of XML component org.nuxeo.ecm.virtualnavigation.contentviews.contrib inside nuxeo-platform-virtualnavigation-web-2023.14.23.jar /OSGI-INF/contentviews-contrib.xml

Extension Point

Extension point contentViews of component ContentViewService.

Registration Order

4
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <contentView name="bySubjectsContentView">
          <title>label.virtualnavigation.subjects</title>
          <translateTitle>true</translateTitle>
          <showTitle>true</showTitle>
          <emptySentence>label.content.empty.search</emptySentence>
          <translateEmptySentence>true</translateEmptySentence>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <!-- search doc maintained here -->
            <searchDocumentType>QueryNav</searchDocumentType>
            <whereClause>
              <predicate operator="STARTSWITH" parameter="dc:subjects">
                <field name="subjects" schema="querynav"/>
              </predicate>
              <fixedPart>
                ecm:mixinType != 'HiddenInNavigation' AND
                ecm:isTrashed = 0 AND
                ecm:isVersion = 0
              </fixedPart>
            </whereClause>
            <sort ascending="true" column="dc:title"/>
            <pageSize>10</pageSize>
          </coreQueryPageProvider>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_listing_thumbnail" showEditRows="true" showSlideshow="true" title="document_thumbnail_listing" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_icon.png" name="document_listing_table" showCSVExport="true" showEditColumns="true" showSpreadsheet="true" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CURRENT_SELECTION_LIST"/>
    
        </contentView>
  • <contentView name="byCoverageContentView">
          <title>label.virtualnavigation.coverage</title>
          <translateTitle>true</translateTitle>
          <showTitle>true</showTitle>
          <emptySentence>label.content.empty.search</emptySentence>
          <translateEmptySentence>true</translateEmptySentence>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <!-- search doc maintained here -->
            <searchDocumentType>QueryNav</searchDocumentType>
            <whereClause>
              <predicate operator="STARTSWITH" parameter="dc:coverage">
                <field name="coverage" schema="querynav"/>
              </predicate>
              <fixedPart>
                ecm:mixinType != 'HiddenInNavigation' AND
                ecm:isTrashed = 0 AND
                ecm:isVersion = 0
              </fixedPart>
            </whereClause>
            <sort ascending="true" column="dc:title"/>
            <pageSize>10</pageSize>
          </coreQueryPageProvider>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_listing_thumbnail" showEditRows="true" showSlideshow="true" title="document_thumbnail_listing" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_icon.png" name="document_listing_table" showCSVExport="true" showEditColumns="true" showSpreadsheet="true" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="CURRENT_SELECTION_LIST"/>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="bySubjectsContentView">
      <title>label.virtualnavigation.subjects</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>
      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <!-- search doc maintained here -->
        <searchDocumentType>QueryNav</searchDocumentType>
        <whereClause>
          <predicate operator="STARTSWITH" parameter="dc:subjects">
            <field name="subjects" schema="querynav"/>
          </predicate>
          <fixedPart>
            ecm:mixinType != 'HiddenInNavigation' AND
            ecm:isTrashed = 0 AND
            ecm:isVersion = 0
          </fixedPart>
        </whereClause>
        <sort ascending="true" column="dc:title"/>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_listing_thumbnail" showEditRows="true" showSlideshow="true" title="document_thumbnail_listing" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_icon.png" name="document_listing_table" showCSVExport="true" showEditColumns="true" showSpreadsheet="true" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST"/>

    </contentView>

    <contentView name="byCoverageContentView">
      <title>label.virtualnavigation.coverage</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>
      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <!-- search doc maintained here -->
        <searchDocumentType>QueryNav</searchDocumentType>
        <whereClause>
          <predicate operator="STARTSWITH" parameter="dc:coverage">
            <field name="coverage" schema="querynav"/>
          </predicate>
          <fixedPart>
            ecm:mixinType != 'HiddenInNavigation' AND
            ecm:isTrashed = 0 AND
            ecm:isVersion = 0
          </fixedPart>
        </whereClause>
        <sort ascending="true" column="dc:title"/>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="document_listing_thumbnail" showEditRows="true" showSlideshow="true" title="document_thumbnail_listing" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_icon.png" name="document_listing_table" showCSVExport="true" showEditColumns="true" showSpreadsheet="true" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST"/>

    </contentView>

  </extension>